# 10-输出list元素.py

list = ['python','余胜军java之父','php']
# 1、输出所有元素
i=0
while i<3:
    print(list[i])
    i+=1

list1=[{"name":"于圣军","age":'29'},{"name":"王天","age":'54'},{"name":"李晨","age":'67'}]
# 2、计算年龄总和
a =0
sum =0
while a<len(list):
    print(list1[a]['age'])
    sum+=int(list1[a]['age'])
    a+=1
print(sum)
# end连接符
print('hello',end="")
print('word')
# \t制表符
print('fewf\tfewfwe')
print('vvv\tfwfwe')